<?php
namespace App\Controllers;

use App\Models\Teacher;

class TestController
{
    public function testFind()
    {
        $t = Teacher::find(1);
        echo $t->name;
    }

    public function testGet()
    {
        $data = Teacher::get();
        print_r($data);
    }
}